<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Lista Clientes</title>
</head>
<body>

   <h1>Lista Clientes</h1>


<table BORDER=7 width =300 bordercolor="155588">
<thead><tr><th>Id</th><th>Nombre</th><th>Direccion</th><th>Opciones</th>
   <tbody>
       <c:forEach var="cliente" items="${listaCliente}">
         <tr>
           <td WIDTH=100 align=center><c:out value="${cliente.id}" /></td>
           <td WIDTH=100 align=center><c:out value="${cliente.nombre}" /></td>
           <td WIDTH=100 align=center><c:out value="${cliente.direccion}" /></td>
           <td>
			<form action="ListaClienteServlet" method="post">
			<input type="submit" value="Eliminar"></input>
			<input type="hidden" value="${cliente.id}" name="id"></input>
			</form>
			<form action="BuscarClienteServlet" method="get">
			<input type="submit" value="Ver Info"></input>
			<input type="hidden" value="${cliente.id}" name="id"></input>
			</form>
			
			<form action="cliente" method="get">
			<input type="submit" value="Editar"></input>
			<input type="hidden" value="ver_editar" name="opcion"></input>
			<input type="hidden" value="${cliente.id}"  name="id"></input>
			</form>
           </td>
         </tr>
       </c:forEach>
</tbody>
</table>
</body>
	
</html>